package com.hckjsec.website.domain.view;

import com.hckjsec.website.domain.WebSiteConfig;
import com.hckjsec.website.domain.WebSiteLearning;

import java.util.List;

//首页返回数据
public class WebSiteHomeData {
    public WebSiteConfig webSiteConfig;//站点设置参数

    public List<WebSiteNewsData> newsList;//新闻

    public List<WebSiteNewsData> notifyList;//通知公告

    public List<WebSiteSpecialHomeData> floatSpecialList;//专题   浮动

    public List<WebSiteSpecialHomeData> specialList;//专题

    public List<WebSiteNewsData> lawstatuteList;//法律法规

    public List<WebSiteNewsData> guideList;//办证指南

    public List<WebSiteTeamData> teamList;//公证人员

    public List<WebSiteSpecialHomeData> linksList;//友情链接

    public List<WebSiteNewsData> matterList;//事项材料

    public List<WebSiteLearning> webSiteLearning;//学术研究


    public WebSiteConfig getWebSiteConfig() {
        return webSiteConfig;
    }

    public void setWebSiteConfig(WebSiteConfig webSiteConfig) {
        this.webSiteConfig = webSiteConfig;
    }

    public List<WebSiteNewsData> getNewsList() {
        return newsList;
    }

    public void setNewsList(List<WebSiteNewsData> newsList) {
        if (newsList.size()>6){
            newsList=newsList.subList(0, 6);
        }
        this.newsList = newsList;
    }

    public List<WebSiteNewsData> getNotifyList() {
        return notifyList;
    }

    public void setNotifyList(List<WebSiteNewsData> notifyList) {
        if (notifyList.size()>6){
            notifyList=notifyList.subList(0, 6);
        }
        this.notifyList = notifyList;
    }

    public List<WebSiteSpecialHomeData> getFloatSpecialList() {
        return floatSpecialList;
    }

    public void setFloatSpecialList(List<WebSiteSpecialHomeData> floatSpecialList) {
        this.floatSpecialList = floatSpecialList;
    }

    public List<WebSiteSpecialHomeData> getSpecialList() {
        return specialList;
    }

    public void setSpecialList(List<WebSiteSpecialHomeData> specialList) {
        this.specialList = specialList;
    }

    public List<WebSiteNewsData> getLawstatuteList() {
        return lawstatuteList;
    }

    public void setLawstatuteList(List<WebSiteNewsData> lawstatuteList) {
        if (lawstatuteList.size()>8){
            lawstatuteList=lawstatuteList.subList(0, 8);
        }
        this.lawstatuteList = lawstatuteList;
    }

    public List<WebSiteNewsData> getGuideList() {
        return guideList;
    }

    public void setGuideList(List<WebSiteNewsData> guideList) {
        if (guideList.size()>8){
            guideList=guideList.subList(0, 8);
        }
        this.guideList = guideList;
    }

    public List<WebSiteTeamData> getTeamList() {
        return teamList;
    }

    public void setTeamList(List<WebSiteTeamData> teamList) {
        this.teamList = teamList;
    }

    public List<WebSiteSpecialHomeData> getLinksList() {
        return linksList;
    }

    public void setLinksList(List<WebSiteSpecialHomeData> linksList) {
        this.linksList = linksList;
    }

    public List<WebSiteNewsData> getMatterList() {
        return matterList;
    }

    public void setMatterList(List<WebSiteNewsData> matterList) {
        if (matterList.size()>9){
            matterList=matterList.subList(0, 9);
        }
        this.matterList = matterList;
    }

    public List<WebSiteLearning> getWebSiteLearning() {
        return webSiteLearning;
    }

    public void setWebSiteLearning(List<WebSiteLearning> webSiteLearning) {
        if (webSiteLearning.size()>9){
            webSiteLearning=webSiteLearning.subList(0, 9);
        }
        this.webSiteLearning = webSiteLearning;
    }
}
